home *** CD-ROM | disk | FTP | other *** search
/ Freelog 117 / FreelogNo117-OctobreNovembre2013.iso / Musique / UniversalPatchFinder / UniversalPatchFinder-1.5.exe / {app} / SDK / UPFPlugin.h
C/C++ Source or Header  |  2013-04-06  |  1KB  |  30 lines

  1. #pragma once
  2. #include <windows.h>
  3.  
  4. enum AttributeType
  5. {
  6.     ATTRIBUTE_TYPE_STRING,
  7.     ATTRIBUTE_TYPE_INTEGER,
  8.     ATTRIBUTE_TYPE_FLOAT,
  9.     ATTRIBUTE_TYPE_BOOLEAN,
  10.     ATTRIBUTE_TYPE_DATE
  11. };
  12.  
  13. typedef void (*CreateTagDelegate)(char *name,char *value, AttributeType type,BOOL isDomainValue);
  14. typedef void (*CreateTagWithoutTypeDelegate)(char *name,char *value);
  15.  
  16. typedef struct {
  17.     CreateTagDelegate createTag; // method to create a new tag
  18.     WCHAR  *libraryPath;         // directory of the library
  19.     WCHAR  *patchPath;           // relative patch of the patch
  20.     WCHAR  *Fullpath;            // full path of the patch
  21.     HANDLE  handle;              // low level stream handle
  22.     void   *stream;              // internal use only
  23.     INT32   CRC32;               // checksum of the patch
  24.     void   *patch;               // internal use only
  25.  
  26.     // method to create a new tag without provinding any type. 
  27.     // UniversalPatchFinder.ini must contain the definition of it
  28.     // (if not, the method does nothing)
  29.     CreateTagWithoutTypeDelegate createTagWithoutType;
  30. } UPFContext;